require "migration_helpers"
class CreateSubjectWords < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :subject_words do |t|
      t.column :word, :string
      t.column :subject_word_type_id, :integer
      t.column :meta_id, :integer
    end
    foreign_key(:subject_words, :subject_word_type_id, :subject_word_types)
    foreign_key(:subject_words, :meta_id, :metas)
  end

  def self.down
    drop_table :subject_words
  end
end
